//
//  NBLViewController.m
//  NBLiOSTools
//
//  Created by GangX-yangjh on 2021/12/5.
//

#import "NBLViewController.h"

@interface NBLViewController ()
@property (nonatomic, assign) BOOL firstAppear;
@end

@implementation NBLViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.firstAppear = YES;
    
    // pop返回按钮
    self.navigationItem.leftBarButtonItems[0].target = self;
    self.navigationItem.leftBarButtonItems[0].action = @selector(clickBackOnNavigationBar:);
}

- (void)viewDidAppear:(BOOL)animated
{
    [super viewDidAppear:animated];
    
    if (self.firstAppear) {
        self.firstAppear = NO;
        [self viewFirstDidAppear];
    }
}
- (void)viewFirstDidAppear
{
}


#pragma mark - Event

- (void)clickBackOnNavigationBar:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
